package com.wxzz.elearing.user.service.openfeign;

import com.wxzz.elearning.common.dto.FeignUserWalletDto;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("2128-wxzz-pay-application")
public interface IUserWalletApiFeign {


    /**
     * 根据用户id与类型查询用户钱包
     * @param userId
     * @param userType
     * @return
     */
    @RequestMapping(value = "/user-wallet-api/selectUserWalletByUserIdAndType/{userId}/{userType}", method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE)
    FeignUserWalletDto selectUserWalletByUserIdAndType(@PathVariable(value = "userId") Long userId, @PathVariable(value = "userType") Integer userType);
}
